package cn.linjianhui.api.client.invoker;

import java.util.HashMap;
import java.util.Map;

public class HttpRequestParam {

    private String requestUrl;

    private Map<String, String> cookies;

    private Map<String, String> headers;

    private Map<String, Object> body;

    private int timeOut;

    public HttpRequestParam(String requestUrl) {
        this(requestUrl, 10000);
    }

    public HttpRequestParam(String requestUrl, int timeOut) {
        this.requestUrl = requestUrl;
        this.timeOut = timeOut;
        cookies = new HashMap<>();
        headers = new HashMap<>();
        body = new HashMap<>();
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }

    public int getTimeOut() {
        return timeOut;
    }

    public void setTimeOut(int timeOut) {
        this.timeOut = timeOut;
    }

    public Map<String, String> getCookies() {
        return cookies;
    }

    public Map<String, String> getHeaders() {
        return headers;
    }

    public Map<String, Object> getBody() {
        return body;
    }
}
